package edu.java.homework.hw11.join.solution.actors;

import edu.java.homework.hw11.join.solution.dish.Dish;


public class Actor implements Runnable {

	// --- Instance Variable ---------------------------------------------------
	private String name = null;
	private Dish dish = null;

	// --- Constructors, Getters/Setters ---------------------------------------

	protected Actor(String name, Dish dish) {
		this.name = name;
		this.dish = dish;
	}

	public String getName() {
		return "[ " + name + " ]";
	}

	public Dish getDish() {
		return dish;
	}

	// --- Methods -------------------------------------------------------------
	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName() + "starts...");
	}

}
